<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_misc('invite')}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Processos de convite e crédito</h2>
					<ul class="filter">
						<li><form action="/manage/misc/invite.php"method="get">Email de quem convida é:<input type="text"name="memail" value="${htmlspecialchars($memail)}" class="h-input" />&nbsp;convidados<input type="text" name="oemail"value="${htmlspecialchars($oemail)}" class="h-input" />&nbsp; <input type="submit" value="Filter" class="formbutton"  style="padding:1px 6px;"/><form> </li>
					</ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="350">Oferta</th><th width="150">Iniciativa do usuário</th><th width="150">Convidado</th><th width="120">tempo de convite</th><th width="80">Operação</th></tr>
					<!--{loop $invites $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td><a class="deal-title" href="/team.php?id={$one['team_id']}" target="_blank">{$teams[$one['team_id']]['title']}</a></td>
						<td><a class="ajaxlink" href="/ajax/manage/userview.php?id={$one['user_id']}">{$users[$one['user_id']]['email']}</a><br/>{$users[$one['user_id']]['username']}<br/>{$one['user_ip']}</td>
						<td><a class="ajaxlink" href="/ajax/manage/userview.php?id={$one['other_user_id']}">{$users[$one['other_user_id']]['email']}</a><br/>{$users[$one['other_user_id']]['username']}<br/>{$one['other_user_ip']}</td>
						<td>${date('d-m-Y H:i', $one['create_time'])}<br/>${date('d-m-Y H:i', $one['buy_time'])}</td>
						<td class="op"><a href="/ajax/manage.php?action=inviteok&id={$one['id']}" class="ajaxlink" ask="Confirm Invitation Rebate Successful?">Confirmar</a>｜<a href="/ajax/manage.php?action=inviteremove&id={$one['id']}" class="ajaxlink remove">Apagar</a></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="8">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
